#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  blog.py
#       Author @  Huoty
#  Create date @  2016-02-17 16:27:32
#  Description @  
# *************************************************************

import web

urls = (
    "", "Reblog",
    "/(.*)", "Blog",
    )

app = web.application(urls, locals())

class Reblog:
    def GET(self):
        raise web.seeother("/")

class Blog:
    def GET(self, path):
        return "blog" + path

# Script starts from here

if __name__ == "__main__":
    app.run()
